package com.pyb.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

/**
 * @version 1.0
 * @Author 彭彦彬
 * @Date 2025/1/15 10:37
 * @注释
 */
@Controller
public class Upload {
    /**
     * 处理GET请求，用于显示上传页面
     */
    @RequestMapping(value = "/upload", method = RequestMethod.GET)
    public ModelAndView showUploadForm() {
        ModelAndView modelAndView = new ModelAndView("upload");
        return modelAndView;
    }
}